function setSidebarActive(th) {
    $(th).parent("li").siblings().removeClass("active");
    $(th).parent("li").addClass("active");
}

function getCheckId() {
    let size = $("input:checkbox:checked").length;
    if (size == 0) {
        return;
    } else {
        let input = $('input[type=checkbox]:checked');
        let idArr = new Array();
        for (let i = 0; i < size; i++) {
            idArr.push(input[i].value);
            //alert(input[i].value);
        }
        return idArr;
        //return $('input[type=checkbox]:checked').val();
    }
}

function formSubmit(url, sTarget) {
    document.forms[0].target = sTarget
    document.forms[0].action = url;
    document.forms[0].submit();
    return true;
}